<template>
  <div>
    <van-sticky>
      <van-tabs v-model:active="active">
        <van-tab title="新品上市" to="/xp"></van-tab>
        <van-tab title="热销推荐" to="/rx"></van-tab>
        <van-tab title="专属服务" to="/zs"></van-tab>
      </van-tabs>
    </van-sticky>
    <router-view v-slot="{ Component }">
  <keep-alive>
    <component :is="Component" />
  </keep-alive>
</router-view>
  </div>
</template>
<script setup>
import { ref } from 'vue';
const active = ref(0);
</script>
<style lang="scss">
</style>
